<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"     xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/plantillaPrincipal.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ListDeRucCampoMsjTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:form styleClass="jsfcrud_list_form">
                <h:panelGroup id="messagePanel" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                </h:panelGroup>
                <h:outputText escape="false" value="#{bundle.ListDeRucCampoMsjEmpty}" rendered="#{deRucCampoMsjController.items.rowCount == 0}"/>
                <h:panelGroup rendered="#{deRucCampoMsjController.items.rowCount > 0}">
                    <h:outputText value="#{deRucCampoMsjController.pagination.pageFirstItem + 1}..#{deRucCampoMsjController.pagination.pageLastItem + 1}/#{deRucCampoMsjController.pagination.itemsCount}"/>&nbsp;
                    <h:commandLink action="#{deRucCampoMsjController.previous}" value="#{bundle.Previous} #{deRucCampoMsjController.pagination.pageSize}" rendered="#{deRucCampoMsjController.pagination.hasPreviousPage}"/>&nbsp;
                    <h:commandLink action="#{deRucCampoMsjController.next}" value="#{bundle.Next} #{deRucCampoMsjController.pagination.pageSize}" rendered="#{deRucCampoMsjController.pagination.hasNextPage}"/>&nbsp;
                    <p:dataTable value="#{deRucCampoMsjController.items}" var="item">
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListDeRucCampoMsjTitle_idCampoMensaje}"/>
                            </f:facet>
                            <h:outputText value="#{item.idCampoMensaje}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListDeRucCampoMsjTitle_valor}"/>
                            </f:facet>
                            <h:outputText value="#{item.valor}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListDeRucCampoMsjTitle_BActivo}"/>
                            </f:facet>
                            <h:outputText value="#{item.estadoDescripcion}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListDeRucCampoMsjTitle_CUsuario}"/>
                            </f:facet>
                            <h:outputText value="#{item.CUsuario}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListDeRucCampoMsjTitle_shIngreso}"/>
                            </f:facet>
                            <h:outputText value="#{item.fhIngreso}">
                                <f:convertDateTime pattern="MM/dd/yyyy" />
                            </h:outputText>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListDeRucCampoMsjTitle_idTipoMensaje}"/>
                            </f:facet>
                            <h:outputText value="#{item.idTipoMensaje}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListDeRucCampoMsjTitle_idCampo}"/>
                            </f:facet>
                            <h:outputText value="#{item.idCampo}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="&nbsp;"/>
                            </f:facet>
                            <h:commandLink action="#{deRucCampoMsjController.prepareView}" value="#{bundle.ListDeRucCampoMsjViewLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{deRucCampoMsjController.prepareEdit}" value="#{bundle.ListDeRucCampoMsjEditLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{deRucCampoMsjController.destroy}" value="#{bundle.ListDeRucCampoMsjDestroyLink}"/>
                        </p:column>
                    </p:dataTable>
                </h:panelGroup>
                <br />
                <h:commandLink action="#{deRucCampoMsjController.prepareCreate}" value="#{bundle.ListDeRucCampoMsjCreateLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ListDeRucCampoMsjIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
